<?php

// phpMyRealty 3
//
// File Name: searchform.php
// File Location : ./templates/default/
//
// Copyright (c)2009 phpMyRealty.com
//
// e-mail: support@phpMyRealty.com

?>
<!-- Simple search form Vertical : start -->

     <?php echo table_header ($lang['Search']); ?>

       <form action="<?php echo URL ?>/search.php" method="POST">

        <table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
          <td align="left" valign="top">

           <table border="0" cellspacing="0" cellpadding="3">

             <tr>
              <td>
		<?php echo $lang['Search_Keyword'] . '<br />'; ?>
		<input type="text" style="width:120px;" name="keyword" maxlength="255">
              </td>
            </tr>
<?php 
if (strcasecmp(@$conf['show_postal_code'], 'OFF') != 0) {
?>
             <tr>
              <td>
		<?php echo $lang['Your_Zip_Code'] . '<br />'; ?>
		<input type="text" style="width:120px;" name="your_zip" maxlength="10">
              </td>
            </tr>

             <tr>
              <td>
		<?php echo $lang['Your_Zip_Code_Radius'] . '<br />'; ?>
		<select name="miles">
		 <option value="1">1</option>
		 <option value="2">2</option>
		 <option value="5">5</option>
		 <option value="10">10</option>
		 <option value="20">20</option>
		 <option value="50">50</option>
		</select>
              </td>
            </tr>
<?php 
}
?>
            <tr>
             <td><?php echo $lang['Order_By'] . '<br />'; ?>
              <select name="order_by" style="width:120px;">
	       <option value="ANY"><?php echo $lang['Search_Any']; ?></option>
	       <option value="price"><?php echo $lang['Listing_Price']; ?></option>
               <option value="bedrooms"><?php echo $lang['Listing_Bedrooms']; ?></option>
               <option value="bathrooms"><?php echo $lang['Listing_Bathrooms']; ?></option>
               <option value="date_added"><?php echo $lang['Date_Added']; ?></option>
              </select>
             </td>
            </tr>
            <tr>
             <td>
              <input type="submit" name="property_search" value="<?php echo $lang['Search']; ?>" class="submit">
             </td>
            </tr>
          </table>
         </td>
        </tr>
       </table>

	    <input type="hidden" name="seed" value="<?php echo rand(1,1000); ?>">

      </form>

<?php echo table_footer (); ?>

<!-- Simple search form Vertical : stop -->